var loop = 0;
function AutoScroll(obj){ 
    loop = loop + 1;
    console.log(loop);
    var window_height = $(window).height();
    $(obj).find("#weibo3list").animate({ 
marginTop:"-"+window_height+"px" 
},1000,function(){ 
$(this).css({marginTop:"0px"}).find(".weibo3:first").appendTo(this); 
}); 
if(loop == 33) {
$.ajax({
type: "POST",
url: "/weibolist.php?type=json",
data: "name=John&location=Boston",
dataType :"json",
success: function(json){
    $("#weibo3list").fadeOut("slow"); 
    $("#weibo3list").html(""); 
    $("#weibo3list").html(json.html); 
    $("#weibo3list").fadeIn("fast"); 
    }
}); 
loop = 0;
} 
}
$(function() {
        $(document).ready(function(){ 
            setInterval('AutoScroll(".weibolist")',10000) 
            }); 
        });
